package cascade.controller.pages
{
	import cascade.App;
	import cascade.model.Page;

	public class PageController
	{
		// constants
		
		public const LOAD_PAGES:String = "loadPages";
		public const LOAD_CONFIGURATION:String = "loadConfiguration";
		public const LOAD_PLUGINS:String = "loadPlugins";
		public const LOAD_SITE_TREE:String = "loadSiteTree";
		public const LOAD_TEMPLATES:String = "loadTemplates";
		
		public const CREATE_PAGE:String = "createPage";
		public const DELETE_PAGE:String = "deletePage";
		public const SELECT_PAGE:String = "selectPage";
		public const OPEN_PAGE:String = "openPage";
		public const EDIT_PAGE:String = "editPage";
		public const RENAME_PAGE:String = "renamePage";
		public const MOVE_Page:String = "movePage";
		public const LOAD_PAGE_HISTORY:String = "loadPageHistory";
		public const CHANGE_PAGE_TEMPLATE:String = "changePageTemplate";
		public const SAVE_CONTENT:String = "saveContent";
		public const SAVE_REVISION:String = "saveRevision";
		
		
		// public functions
		
		public function loadPages():void
		{
			Cascade.controller.execCommand(LOAD_PAGES);
		}
		
		public function createPage(page:Page):void
		{
			
		}
		
		
	}
}